package cn.dgut.training.service;

import cn.dgut.training.dto.GroupBuyingDTO;
import cn.dgut.training.entity.activity.GroupBuying;
import cn.dgut.training.vo.CommonResponse;
import cn.dgut.training.vo.GroupBuyingVO;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IGroupBuyingService extends IService<GroupBuying> {

    GroupBuyingVO createActivity(GroupBuyingDTO groupBuyingDTO);

    Integer updateActivity(Long id);

    GroupBuyingVO listAllActivityByPage(GroupBuyingDTO groupBuyingDTO);

//    GroupBuyingVO getGoodsRulesByRulesId(GroupBuyingDTO groupBuyingDTO);

    GroupBuyingVO deleteActivity(GroupBuyingDTO groupBuyingDTO);

    GroupBuyingVO findUserJoinGroup(Long userId,GroupBuyingDTO groupBuyingDTO);
}
